a handy gadget to avoid having to reboot everytime a new version of  a PMSAM is built
to adapt you will have to 1. change some path names here.  You need 
2. you will have to change  resources in  SwapPMSAM that specify the files to be swapped.  a 'STR ' and a 'fldr' resource

This script wraps the SwapPMSAM so that this script can be run more than once.  The original new version is temporarily copied to the desktop. The swap happens.  Then the version is build folder is trashed 'cause it has the old file id. Then the temp copy is moved back to the build folder.  So we can run the script again and get the desired result.
The .SYM file is also copied to the extensions folder.